package com.jframe.sys.orm.dao;

import java.io.Serializable;
import java.util.List;

public interface BaseDao {
	public Object get(Class clz, Serializable id);
	public Serializable save(Object obj);
	public void update(Object obj);
	public void saveOrUpdate(Object obj);
	public void delete(Object obj);
	public void delete(String hql,String ids);
	public Serializable execute(String hql);
	public Serializable execute(String hql,Object param);
	public Serializable execute(String hql,Object[] params);
	public List find(String hql);
	public List find(String hql, Object param);
	public List find(String hql, Object[] params); 
	public List find(String hql,int start,int limit);
	public List find(String hql,Object param,int start,int limit);
	public List find(String hql,Object[] params,int start,int limit);
	public List findByIds(String hql,String ids);
	public List findByIds(String hql,String ids,int start,int limit);
	public int queryForIntByHql(String hql);
	public int queryForIntByHql(String hql,String ids);
	public int queryForIntByHql(String hql,Object param);
	public int queryForIntByHql(String hql,Object[] params);
	//public int countByHql(String hql);
	//public int countByHql(String hql, Object[] params);
	//public int getLsSize(List ls);
}
